import { apiResquest } from '@/utils/request.js'
// 搜藏课程接口
export const collectCourse = () => {
	return apiResquest({
		url: `/app/product/collect/list`,
		method: 'get',
	})
}
export const courseList = (query) => {
	return apiResquest({
		url: `/app/product/page`,
		method: 'get',
		query
	})
}
export const buy = (query) => {
	return apiResquest({
		url: `/app/product/order/add`,
		method: 'post',
		query
	})
}
export const courseCollet = (query) => {
	return apiResquest({
		url: `/app/product/collect/add`,
		method: 'post',
		query
	})
}

export const courseBuy = (query) => {
	return apiResquest({
		url: `/app/product/order/list`,
		method: 'get',
		query
	})
}
export const details = (query) => {
	return apiResquest({
		url: `/product/${query}`,
		method: 'get',
		query
	})
}